package com.sdutcm.springbootjpa.Service;

/*
 *@Author Yan
 *@Create 2019-09-01 20:07
 */

import com.sdutcm.springbootjpa.Entity.Student;

import java.util.Optional;

public interface StudentService {

    Iterable<Student> findAll() throws Exception;

    Optional<Student> findById(Integer id) throws Exception;

    Integer save(Student student) throws Exception;

}